package com.zlzxm.studentscreen.ui.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.zlzxm.studentscreen.R;
import com.zlzxm.studentscreen.ui.adapter.entity.EntityTextContent;

/**
 * CREATE BY zlzxm ON 2022/3/14
 */
public class TextContentAdapter<T extends EntityTextContent> extends BaseQuickAdapter<T, BaseViewHolder> {

    public TextContentAdapter( ) {
        super(R.layout.item_text);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, T entityTextContent) {
        baseViewHolder.setText(R.id.tvContent,entityTextContent.getContent());

    }
}
